import JsonData from "../../Json.js";
let { second } = JsonData.gallery;
Component({
    properties: {
        currentIndex: {
            type: String,
            value: "",
          observer: function (index) {
              if (index == 1){
                this.app = getApp();
                this.app.sliderightshow(this, "slide_right0", 200, 1, 2000, 1000);
                this.app.sliderightshow(this, "slide_right1", -200, 1, 2000, 1000);
                this.app.show(this, "show0", 1, 5000, 4000);
                this.app.slideupshow(this, "slide_up0", 20, 1, 5000, 3000);
              }
            }
        }
    },
    data: {
      second: second
    },
    methods: {},
    ready: function() {
      this.app = getApp();
      if (this.data.currentIndex == "1") {
        console.log(123);
      }
    }
});